<!--本文件由FirstUI授权予关赛川（手机号： 1 5  60  05 1  520 5，身份证尾号：22 6  5 1 9）专用，请尊重知识产权，勿私下传播，违者追究法律责任。-->
<template>
	<view class="payCont">
		<view class="paycont-title">
			 <fui-nav-bar background="rgba(0,0,0,0)" :isFixed="true"   title="支付成功" @leftClick="leftClick" >
			 	<fui-icon name="arrowleft" color='#fff'></fui-icon>
			 <!-- 	<template v-slot:right>
			 		<fui-icon name="plus"></fui-icon>
			 	</template> -->
			 </fui-nav-bar>
		</view>
		<image class="payPn" :src="baseOssUrl + 'icon/paybg.png'" mode=""></image>
		<view class="succ-cont">
			<image class="succPn" :src="baseOssUrl+ 'icon/succ.png' " mode=""></image>
			<view class="pay-succ">
				支付成功
			</view>
			<view class="succ-text">
				恭喜您支付成功
			</view>
		</view>


		<view class="succBtn">
			<fui-button text="查看订单" background="#35743D" width='96%' :margin="['0', '17rpx']" radius='50rpx' @click="pricePopup"></fui-button>
		</view>
	</view>
</template>

<script>
	import {
		baseOssUrl
	} from '@/common/settings';
	import {
		mapState,
		mapMutations
	} from 'vuex';
	export default { 
		data() {
			return {
				baseOssUrl: baseOssUrl,
				orderId:''
			}
		},
		onLoad(op) {
			console.log("id",op) 
			this.orderId = op.orderId
		},
		methods: {
		 pricePopup(){
			 uni.navigateTo({
			 	url:'/pages/hotelOrderDetails/index?orderId='+this.orderId
			 })
		 },
			leftClick(){
				uni.navigateBack({
					delta: 1
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.payCont {
		height: 100%;
		position: relative;

		.paycont-title { 
			width: 100%;
			color: #fff; 
		}

		.payPn {
			width: 100%;
			height: 320rpx;
		}

		.succ-cont {
			display: flex;
			// justify-content: center;
			flex-direction: column;
			align-items: center;

			.succPn {
				margin-top: -74rpx;
				width: 148rpx;
				height: 148rpx;
			}

			.pay-succ {
				font-size: 40rpx;
				color: #1D1D1D;
				margin: 20rpx 0;
				font-weight: bold;
			}

			.succ-text {
				font-size: 30rpx;
				color: #707070;
				margin-bottom: 64rpx;
			}
		}

	}
</style>
